import { configureStore } from "@reduxjs/toolkit";
import CountReducer from "./modules/CountStore";
import ChannelStore from "./modules/ChannelStore";

// 配置store
const store = configureStore({
  reducer: {
    counter: CountReducer,
    channel: ChannelStore,
  },
});

// 导出store的类型防止ts检查类型报错
export type RootState = ReturnType<typeof store.getState>;

// 导出store
export default store;
